package com.wsl.controller;

import com.wsl.mapper.TestUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 22:40 2017/10/29
 * @Modified by:
 */
@RestController
public class UserController {
    @Autowired
    private TestUserMapper testUserMapper;

    @RequestMapping("/getUser/{id}")
    String getUser(@PathVariable Long id){
        return testUserMapper.getById(id).toString();
    }
}